home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr05 / fres20.zip / FRESSRC.ZIP / MAKEFILE < prev    next >
Text File  |  1993-03-23  |  1KB  |  81 lines

  1. # This Makefile is for MSC 7.0
  2. ##### Module Macro #####
  3. NAME    = Fres
  4. SRCS    = $(NAME).c
  5. OBJS    =
  6.  
  7. ##### Library Macro #####
  8.  
  9. ##### Replace the LIBS definition with the following for Windows 3.1
  10. LIBS    = libw slibcew mmsystem
  11.  
  12. MOD    = -AS
  13.  
  14. ##### Include Macro #####
  15. INCLS    = $(NAME).h
  16.  
  17. ##### Resource Macro #####
  18. RCFILES =  $(NAME).rc
  19.  
  20. ##### Windows Version Macro #####
  21. ### DEBUG Defined #####
  22.  
  23. ##### Build Option Macros #####
  24. !ifdef DEBUG
  25. DDEF    = -DDEBUG
  26. CLOPT    = -Zid -Od
  27. MOPT    = -Zi
  28. LOPT    = /CO /LI /MAP
  29. !else
  30. DDEF    =
  31. CLOPT    = -Os
  32. LOPT    =
  33. !endif
  34.  
  35. ##### General Macros #####
  36. DEF    =
  37.  
  38. ##### Tool Macros #####
  39. ASM    = masm -Mx $(MOPT) $(DDEF) $(DEF)
  40. CC    = cl -nologo -c $(MOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
  41. LINK    = link /NOD /NOE $(LOPT)
  42. RC    = rc $(DDEF) $(DEF)
  43. HC    = hc
  44.  
  45. ##### Inference Rules #####
  46. .c.obj:
  47.     $(CC) $*.c
  48.  
  49. .asm.obj:
  50.     $(ASM) $*.asm;
  51.  
  52. ##### Main (default) Target #####
  53. goal: $(NAME).exe
  54.  
  55. ##### Dependents For Goal and Command Line #####
  56. $(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
  57.     $(LINK) @<<
  58.     $(SRCS:.c=.obj) $(OBJS),
  59.     $(NAME).exe,
  60.     $(NAME).map,
  61.     $(LIBS),
  62.     $(NAME).def
  63. <<
  64.     $(RC) $(NAME).res
  65. !ifdef DEBUG
  66.     cvpack -p $(NAME).exe
  67.     mapsym $(NAME).map
  68. !endif
  69.  
  70. ##### Dependents #####
  71. $(SRCS:.c=.obj): $(INCLS)
  72. $(NAME).res: $(INCLS) $(RCFILES)
  73.  
  74. ##### Clean Directory #####
  75. clean:
  76.     -del *.obj
  77.     -del *.res
  78.     -del *.exe
  79.     -del *.map
  80.     -del *.sym
  81.